/**
 * Axelor Business Solutions
 *
 * Copyright (C) 2005-2017 Axelor (<http://axelor.com>).
 *
 * This program is free software: you can redistribute it and/or  modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
.bar-layout {
	max-width: 1200px;
	margin: auto;
	padding: 14px;
}

.bar-layout.mid-form {
	max-width: 768px;
}

.bar-layout.mini-form {
	max-width: 480px;
}
.bar-layout.large-form {
	max-width: 1200px;
}

.panel-layout * {
	box-sizing: border-box;
}

.panel {
	background-color: #fff;
}

.panel .panel-header {
	padding: 11px 15px 14px;
	border-top: 4px solid #e7e7e7;
	border-bottom: 1px solid #e7e7e7;
	margin-top: -1px;
}

.panel-nested > .panel-header {
	border-top: 0;
	padding: 6px 0;
	margin-bottom: 4px;
}

.panel .panel-title {
	font-size: 14px;
	font-weight: 600;
}

.panel .panel-header .panel-icons a {
	color: #c4c4c4;
}

.panel .panel-header .menu-bar {
	position: relative;
	top: -6px;
	right: -10px;
	margin: 0;
}

.panel .panel-header .menu-bar > .menu > a {
	padding: 6px 10px;
	background-image: none;
	border: 0;
}

.panel .panel-header .menu-bar .caret {
	margin-top: 7px;
}

.panel .panel-header .dropdown-menu {
	left: inherit;
	right: 0;
}

.panel.collapsed .panel-header {
	border-bottom: 0;
}

.panel .panel-body {
	padding: 14px;	
	transition: height 0.3s ease-out;
}

.panel {
	margin-bottom: 16px;
	border: 1px solid #e7e7e7;
}

.panel.attached {
	margin-top: -16px;
}

.panel.noframe {
	border: none;
	box-shadow: none;
}
.panel.noframe .panel-body {
	padding: 0;
}

.panel .row-fluid > .form-item {
	margin-bottom: 6px;
}

.panel .row-fluid > .form-item-hidden {
	margin-bottom: 0;
}

.panel .row-fluid > .form-item-hidden:first-child + .form-item {
	margin-left: 0;
}

.panel .row-fluid:last-child > .form-item-hidden,
.panel .row-fluid:last-child > .form-item {
	margin-bottom: 1px;
}
.panel[x-stacked] .row-fluid:last-child > .form-item {
	margin-bottom: 6px;
}
.panel[x-stacked] .row-fluid:last-child > .form-item-hidden,
.panel[x-stacked] .row-fluid:last-child > .form-item:last-child {
	margin-bottom: 1px;
}

.panel[x-stacked] .row-fluid:last-child > .form-item-hidden,
.panel[x-stacked] .row-fluid:last-child > .form-item:last-child,
.panel[x-stacked] .row-fluid:last-child > .form-item:last-child > .panel {
	margin-bottom: 1px;
}

@media (max-width: 767px) {
	.panel .row-fluid:last-child > .form-item {
		margin-bottom: 6px;
	}
	.panel .row-fluid:last-child > .form-item:last-child {
		margin-bottom: 1px;
	}
}

.panel-layout .panel:not(.panel-related) {
	border: none;
	box-shadow: none;
	margin-bottom: 0;
}

.panel-layout .bar-layout,
.panel-layout .panel .panel-body {
	padding: 0;
}

.panel-layout .o2m-list .panel .row-fluid > .form-item {
	margin-bottom: 6px;
}

.panel-layout .form-item-container.readonly > a,
.panel-layout .form-item-container.readonly > input,
.panel-layout .form-item-container.readonly > span.display-text {
	padding-left: 0;	
}

.panel-layout .readonly > .o2m-list > .o2m-list-row > a {
	color: #0088cc;
}

.panel-layout .form-item-container input {
	min-width: inherit;
}
.panel-layout .form-item-container.time-item input,
.panel-layout .form-item-container.datetime-item .picker-input {
	width: 100%;
}
.panel-layout .form-item-container input[type="radio"],
.panel-layout .form-item-container input[type="checkbox"] {
	margin-top: 0 !important;
}

.panel-layout .form-item-container,
.panel-layout .form-item-container > span.display-text {
	min-height: 28px;
}

.panel-layout .form-item-container.editable input[type="text"],
.panel-layout .form-item-container.editable input[type="password"],
.panel-layout .form-item-container.editable input[type="number"],
.panel-layout .form-item-container.editable input[type="email"],
.panel-layout .form-item-container.editable input[type="url"],
.panel-layout .form-item-container.editable .tag-select {
	border-top-width: 0;
	border-left-width: 0;
	border-right-width: 0;
	padding-left: 0;
}

.panel-layout .slick-cell .form-item-container.editable input[type="text"],
.panel-layout .slick-cell .form-item-container.editable input[type="password"],
.panel-layout .slick-cell .form-item-container.editable input[type="number"],
.panel-layout .slick-cell .form-item-container.editable input[type="email"],
.panel-layout .slick-cell .form-item-container.editable input[type="url"],
.panel-layout .slick-cell .form-item-container.editable .tag-select {
	border-top-width: 1px;
	border-left-width: 1px;
	border-right-width: 1px;
	padding-left: 6px;
}
.panel-layout .slick-cell .form-item-container.editable .tag-select {
	padding-left: 0;
}

.panel-layout .image-item .btn,
.panel-layout .file-item .btn {
	width: 32px;
	padding: 2px 6px 2px;
	height: 28px;
}

.panel-layout .tag-select,
.panel-layout .tag-select > ul {
	min-height: 26px;
}
.panel-layout .tag-select .tag-text,
.panel-layout .tag-select .tag-link,
.panel-layout .tag-select-single .tag-link {
	height: 17px;
	line-height: 17px;
	font-size: 11px;
}

.panel-layout .label-item,
.panel-layout .label-item span,
.panel-layout label span.title {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	margin-bottom: 0;
	height: 18px;
}
.panel-layout .label-item span {
	display: inline-block;
	max-width: 100%;
}

.panel-related .panel-header {
	border-bottom: none;
}
.panel-related .panel-header .icons-bar {
	padding-top: 0;
}
.panel-related .panel-header .icons-bar i {
	margin: 0 4px;
	padding: inherit;
}

.panel-related .panel-body {
	padding: 0;
	position: relative;
	min-height: 1px;
}

.panel-related .panel-body .slickgrid {
	position: absolute;
	left: 0px;
	right: 0px;
	top: 0px;
	bottom: 0px;
	border: none;
}
.panel-related.noEdit .edit-icon i:before,
.panel-related.readonly .edit-icon i:before {
	content: "\f0f6";
}

.panel-tabs,
.panel-stack,
.bar-layout .dashboard {
	margin-bottom: 16px;
}

.panel-tabs .nav-tabs > li > a {
	border-color: #e7e7e7 !important;
}
.panel-tabs .nav-tabs > li.active > a {
	color: #333;
	border-bottom-color: transparent !important;
}
.panel-tabs .tab-content {
	padding: 14px;
	overflow: inherit;
	background-color: #fff;
	border: 1px solid #e7e7e7;
}

.panel-tabs .tab-content > .panel {
	margin: 0;
}

.panel-stack > .panel {
	margin: 0;
}

.panel-tabs[x-sidebar] {
	margin-bottom: 0;
}

.bar-layout .portlet-header .navbar-inner {
	background-image: none;
	background-color: #f5f5f5;
	border-bottom: 1px solid #e7e7e7;
}
.bar-layout .portlet-header .divider-vertical {
	border-left: 1px solid #D3D3D3;
}

.bar-layout .form-item-portlet,
.bar-layout .form-item-portlet .portlet-minimized {
	height: auto;
	min-height: inherit !important;
}

.panel-layout .m2o-editor {
	position: relative;
}
.panel-layout .m2o-editor-controls {
	position: absolute;
	top: -18px;
	right: 0;
}

.panel-layout .m2o-editor-controls a {
	margin: 0 4px;
	color: #333;
}

[x-show-title="false"] > .m2o-editor {
	margin-top: 18px;
}

.panel-layout .o2m-list .form-item {
	padding: 0;
}

.panel-layout .o2m-list .panel {
	margin-bottom: 0;
}

.panel-layout .editable > .o2m-list {
	display: table;
	width: 100%;
}

.panel-layout .editable > .o2m-list .o2m-list-row {
	display: table-row;
}

.panel-layout .editable > .o2m-list .o2m-list-row > div,
.panel-layout .editable > .o2m-list .o2m-list-row > span {
	display: table-cell;
	padding: 2px 0;
}

.panel-layout .editable > .o2m-list .o2m-list-row > span.o2m-list-remove {
	vertical-align: middle;
	width: 24px;
}

.panel-layout .editable > .o2m-list .o2m-list-row > a,
.panel-layout .editable > .o2m-list .o2m-list-row > span.o2m-list-remove a {
	color: #333333;
	outline: none;
}
.panel-layout .editable > .o2m-list .o2m-list-row > span.o2m-list-remove a {
	padding: 0 6px;
}

.panel-layout .editable > .o2m-list .o2m-list-row .toggle-item button {
	border-left: 0;
	border-top: 0;
	border-right: 0;
	outline: none;
	height: 28px;
	color: #ccc;
	padding: 4px 6px;
}

.panel-layout .editable > .o2m-list .o2m-list-row .toggle-item button:focus {
	color: #ccc;
	background: none;
	box-shadow: none;
	border-color: #ccc;
}
.panel-layout .editable > .o2m-list .o2m-list-row .toggle-item button:hover,
.panel-layout .editable > .o2m-list .o2m-list-row .toggle-item button:active,
.panel-layout .editable > .o2m-list .o2m-list-row .toggle-item button.active {
	color: #333;
	background: none;
	box-shadow: none;
	border-color: #ccc;
}

.panel-layout .editable > .o2m-list .o2m-list-remove i,
.panel-layout .editable > .o2m-list .o2m-list-add i {
	color: #ccc;
	font-size: 12px;
}
.panel-layout .editable > .o2m-list .o2m-list-remove i:hover,
.panel-layout .editable > .o2m-list .o2m-list-add i:hover {
	color: #333;
}

.panel-layout .row-fluid [class*="span"] {
	min-height: inherit !important;
}

.panel-layout .form-item > a.btn,
.panel-layout .form-item-container button {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;

	padding: 3px 10px 3px;
	min-width: 28px;
	height: 28px;
}
.panel-layout .btn:focus {
  background-position: inherit;
}
.panel-layout .form-item.btn-group {
	width: 100%;
}
.panel-layout .form-item.btn-group > a.btn {
	width: auto;
}
.panel-layout .btn-link.disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.6;
}

.panel-layout .row-fluid.has-labels > .form-item > a.btn,
.panel-layout .row-fluid.has-labels > .form-item > [x-show-title="false"][ng-model] {
	margin-top: 18px;
}

.panel-tabs .nav-tabs-responsive {
	margin-bottom: -1px;
	display: inline-flex;
}

.panel-tabs .nav-tabs-responsive > li.dropdown {
	max-width: 120px;
}

.panel-tabs .nav-tabs-responsive a,
.panel-tabs .nav-tabs-responsive > li.dropdown > a > span {
	outline: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.panel-tabs .nav-tabs-responsive > li.dropdown > a > span {
	display: inline-block;
	max-width: 74px;
	margin-bottom: -4px;
}

/** nested editor **/
.panel-layout .nested-editor .panel:not(.panel-related) {
	margin-bottom: 16px;
}
.panel-layout .nested-editor .panel-layout .panel:not(.panel-related) {
	margin-bottom: 0;
}
.panel-layout .nested-editor .panel .panel-body {
	padding: 14px;
}
.panel-layout .nested-editor .panel-layout .panel .panel-body {
	padding: 0;
}
.panel-layout .form-item-group.bordered-box {
   padding: 14px 14px 0;
}
.panel-layout .form-item-group > legend {
	padding: 0;
	margin: 0;
}
.panel-layout .stackbar .navbar .navbar-inner {
	background: #fff;
	padding: 11px 15px 14px;
    border-top: 4px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
	border-radius: 0;
}
.panel-layout .stackbar .navbar .navbar-inner .brand {
	margin: 0;
	padding: 0;
    font-size: 14px;
    font-weight: 600;
}
.panel-layout .stackbar .navbar .navbar-inner .icons-bar {
	padding: 0;
}
.panel-layout .stackbar .navbar .navbar-inner .icons-bar i {
    margin: 0 4px;
    padding: inherit;
}
.panel-layout .stackbar > .slickgrid {
	top: 47px;
}
.panel-layout .stackbar .form-item-group.inline-form {
   padding-top: 30px;
}

/** some special classes */
.border-left-none,
.border-left-none.form-item-container,
.border-left-none.form-item-container > input {
	border-left: none;
}
.border-right-none,
.border-left-none.form-item-container,
.border-left-none.form-item-container > input  {
	border-left: none;
}

.address-list .o2m-list-row {
	width: 48.71%;
	float: left;
	margin-left: 0;
}
.address-list .o2m-list-add {
	width: 100%;
	margin-left: 0;
}
.address-list .o2m-list-row.even {
	margin-left: 2.56%;
}

@media (max-width: 767px) {
	.address-list .o2m-list-row {
		width: 100%;
		float: none;
		margin-left: 0 !important;
	}
}
.panel-layout .order-subtotal dl {
	max-width: 280px;
	float: right;
}
.panel-layout .order-subtotal dt,
.panel-layout .order-subtotal dd {
	padding: 4px;
}

.panel-layout .order-subtotal dt {
	padding-right: 8px;
	font-weight: normal;
	white-space: normal;
	width: 55%;
}
.panel-layout .order-subtotal dd {
	margin-left: 0;
	text-align: right;
}

.panel-layout .order-subtotal dd:empty {
	height: 26px;
}

.panel-layout .order-subtotal-total {
	border-top: 1px solid #ccc;
	font-size: 18px;
	font-weight: 600;
}

@media (max-width: 767px) {
	.panel-layout .order-subtotal dt {
		float: left;
		text-align: right;
		width: 48%;
	}
}

.help-item {
	border-radius: 0;
}

.panel .help-item {
	margin: 0;
}

.help-item:after {
	font: normal normal normal 14px/1 FontAwesome;
	content: "\f10e";
}
.help-item:before {
	font: normal normal normal 14px/1 FontAwesome;
	content: "\f10d";
}

.info-button {
	height: 60px;
	width: 100%;
	padding: 4px 8px;
	border-style: dotted;
}

.info-button > i,
.info-button > img {
	display: block;
	width: 32px;
	float: left;
}

.info-button > i {
	height: 100%;
	font-size: 26px;
	line-height: 50px;
}

.info-button > img {
	display: block;
	height: 32px;
	margin-top: 4px;
}

.info-button-data {
	float: left;
	width: calc(100% - 32px);
	height: 100%;
	line-height: 22px;
	padding-left: 8px;
	text-align: left;
}

.info-button-value {
	font-size: 22px;
	font-weight: 600;
	display: block;
	margin: 2px 0 4px;
    white-space: nowrap;
    max-width: 150px;
	overflow: hidden;
    text-overflow: ellipsis;
}

.info-button-title {
	display: block;
	overflow: hidden;
}

.info-button > i,
.info-button .info-button-value,
.info-button .info-button-title {
	text-shadow: 1px 1px 0 rgba(0,0,0,.15);
}

.info-button:not([class*=btn-]) > i,
.info-button:not([class*=btn-]) .info-button-value {
	color: #3c763d;
}

.info-button:not([class*=btn-]):hover,
.info-button:not([class*=btn-]):focus,
.info-button:not([class*=btn-]):active,
.info-button:not([class*=btn-]).active {
	box-shadow: none;
	background-color: #fff;
}
